package com.quanyan.place.service;

import com.quanyan.api.APIResponse;
import com.quanyan.common.Plugin.PageObj;
import com.quanyan.place.entity.TbBizPlaceEmployee;
import com.quanyan.place.entity.apireq.ReqEmployeeInfo;
import com.quanyan.place.entity.apiresp.RespCommerceEmployee;
import com.quanyan.place.entity.vo.EmployeeFormDataVo;

import java.util.List;

/**
 * Created by liuyaoxin on 2016/6/16.
 */


public interface EmployeeService<T> {

 APIResponse<T> importEmployeeData(TbBizPlaceEmployee vo);

 TbBizPlaceEmployee getEmployeeByUid(Integer uid);

 PageObj<List<TbBizPlaceEmployee>> getEmployeeList(ReqEmployeeInfo reqEmployeeInfo);

 APIResponse <T> updateEmployeeById(EmployeeFormDataVo employeeFormDataVo);

 APIResponse <T> deleteEmployeeById(Integer id);


 PageObj<List<RespCommerceEmployee>> getEmployeeInfoList(ReqEmployeeInfo reqEmployeeInfo);

 TbBizPlaceEmployee getEmployeeById(Integer id);

 Integer getEmployeeTitleByUid(Integer uid);

 /**
  * 获取商务员工个数
  * @param cityId
  * @param keyWords
  * @return
  */
 Integer countEmployee(Integer cityId, String keyWords);

 /**
  * 获取商务员工列表
  * @param cityId
  * @param keyWords
  * @param pageNum
  * @param pageSize
  * @param totalNum
  * @return
  */
 List<TbBizPlaceEmployee> getEmployeeList(Integer cityId,
                                                 String keyWords,
                                                 Integer pageNum,
                                                 Integer pageSize,
                                                 Integer totalNum);

}
